import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    showMenu: false,
    //是否展示广告条
    showAd: true,
    //所在城市
    city:{
      name:'太原',
      code:10
    }
  },
  mutations: {
    setMenu(state, status) {
      state.showMenu = status;
    },
    setShowAd(state, status) {
      state.showAd = status
    },
    setCity(state,data){
      state.city= data;
    }
  },
  actions: {
  },
  modules: {
  }
})
